package cn.good.user.config;


//import com.cloopen.rest.sdk.CCPRestSmsSDK;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 短信注册，初始化发送类
 */
@Configuration
@ConfigurationProperties(prefix = "user.smscode")
@PropertySource(value = "classpath:application.properties", encoding = "UTF-8")
public class SmsConfig {
    private String accountSid;

    private String accountToken;

    private String appId;

    private String serverIp;

    private String serverPort;

    public String getAccountSid() {
        return accountSid;
    }

    public void setAccountSid(String accountSid) {
        this.accountSid = accountSid;
    }

    public String getAccountToken() {
        return accountToken;
    }

    public void setAccountToken(String accountToken) {
        this.accountToken = accountToken;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort;
    }



//    @Bean
//    public CCPRestSmsSDK ccpRestSDK(){
//
//        CCPRestSmsSDK ccpRestSDK = new CCPRestSmsSDK();
//        ccpRestSDK.init(this.serverIp,this.serverPort);
//        ccpRestSDK.setAccount(this.accountSid,this.accountToken);
//        ccpRestSDK.setAppId(this.appId);
//        return ccpRestSDK;
//    }
}
